package cn.itcast.zt.java8.model.decorator.demo2;

/**
 * 抽象装饰器类，AbstractHandler，持有一个被装饰类的引用，这个引用具体在运行时被指定
 * @author zhangtian105
 * @date 2023/4/20
 * @apiNote 抽象父类
 */
public abstract class AbstractHandler<T, R> implements BaseHandler<T, R> {
    protected BaseHandler<T, R> baseHandler ;

    public AbstractHandler(BaseHandler<T, R> baseHandler) {
        this.baseHandler = baseHandler ;
    }
}
